package ioProject

import (
	"gitee.com/saxon134/workflow/db/project"
	"gitee.com/saxon134/workflow/interface/ioUser"
)

type ListRequest struct {
	Status int `json:"status"` // 1-正常 2-已完成 -1-已废弃
}

type Item struct {
	*project.TblProject
	UserAry []*ioUser.Basic `json:"userAry"`
}

type SaveRequest struct {
	*project.TblProject
	Users []int64 `json:"users"`
}

type BriefRequest struct {
	Id int64 `json:"id" form:"id"`
}

type BriefResponse struct {
	*project.TblProject
	UserAry []*ioUser.Basic `json:"userAry"`
	Demand  Brief           `json:"demand"`
	Job     Brief           `json:"job"`
	Case    Brief           `json:"case"`
	Bug     Brief           `json:"bug"`
}

type Brief struct {
	Total   int `json:"total"`
	Done    int `json:"done"`
	Todo    int `json:"todo"`
	Discard int `json:"discard"`
}

type CntGroup struct {
	Cnt    int `json:"cnt"`
	Status int `json:"status"`
}
